﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Reporting.Domain.RBAC
{
    /// <summary>
    /// 用户角色关联表
    /// </summary>
    public class UserRole
    {
        /// <summary>
        /// 用户角色关联表主键
        /// </summary>
        [Key]
        public int UserRoleId { get; set; }
        /// <summary>
        /// 外键
        /// User 
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 外键，
        /// Role
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime UserRoleTime { get; set; }
        /// <summary>
        ///状态 false-正常 true-删除
        /// </summary>
        public bool UserRoleStatus { get; set; } = false;
    }
}
